import React from 'react'
import { NavLink } from 'react-router-dom'
import { Tabs } from 'antd';
const { TabPane } = Tabs;
export default class RouterLink extends React.Component {
    render() {
        let { routes, selfClassName } = this.props
        return (
            <div>
                {
                    routes.map((item, index) => {
                        if (item.from) return null;
                        if(!item.name)return null
                        if(item.isShow){
                            return <NavLink key={index} activeClassName={selfClassName} to={item.path}>
                                <i className={item.icon}></i>
                                {item.name}
                               </NavLink>
                        }
                    })
                }
            </div>
        )
    }
}